Activity Diagram for LinkedIn

Create some activity diagrams for the LinkedIn problem.

Activity diagrams are a great way to visualize the flow of messages from one activity to the other in the system. There can be different activity diagrams that we can create for LinkedIn. In this lesson, we’ll create activity diagrams for the following two activities:

  • Creating a new post

  • Activity challenge: A user creates a page.

Creating a new post#

The states and actions that will be involved in this activity diagram are provided below.

States#

Initial state: The user selects the new post option.

Final state: The post is published.

Actions#

The user selects the new post option, selects the privacy option, adds any attachments, and publishes the post.

The activity diagram for a user creating a new post
The activity diagram for a user creating a new post

Activity challenge: A user creates a page#

You’ll help us create an activity diagram of a user creating a page. A skeleton of the activity diagram is given below:

The activity diagram for a user creating a page
The activity diagram for a user creating a page

Notice that the actions in the diagram above are numbered from 1 to 10. The slots below represent the activities, and the arrows represent the flow from one activity to the other.

Can you rearrange the slots below in the correct order they should appear in the activity diagram given above?

Note: If you are unsure, click the “Show Solution” button to check the correct answer.

Fill the missing slots with the correct actions for a user creating a page.

User clicks the “Work” button

  1. User clicks the “Create a Company Page” button

Choose page type

Company

  1. Educational Institution
  1. Showcase Page

Add required fields

User presses the “Create Page” button

  1. Any required field missing

Page created successfully


Alternatively, you can click the "Show complete diagram" button below to see the complete activity diagram.

We've looked at some of the activity diagrams of LinkedIn. In the next lesson, we will present the code for our designed classes in some of the most popular languages.

Sequence Diagram for LinkedIn

Code for LinkedIn